﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Kooboo.CMS.Sites.Models;

[assembly: System.Web.PreApplicationStartMethod(typeof(Kooboo.CMS.Toolkit.Modules.ModuleStartup), "Start")]

namespace Kooboo.CMS.Toolkit.Modules
{
    public static class ModuleStartup
    {
        public static void Start()
        {
            Kooboo.CMS.Sites.Services.ServiceFactory.ModuleManager = new ModuleManager();

            Kooboo.CMS.Sites.ControllerTypeCache.RegisterController(
                "Kooboo.CMS.Web.Areas.Contents.Controllers.TextContentController",
                typeof(ModuleTextContentController));

            Kooboo.CMS.Sites.ControllerTypeCache.RegisterController(
                "Kooboo.CMS.Web.Areas.Contents.Controllers.TextFolderController",
                typeof(ModuleTextFolderController));
        }
    }
}